//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet.Extensibility
{
    public class IgnoreErrorsAttribute : ParameterConverterAttribute
    {
        public IgnoreErrorsAttribute()
            : base(ReferenceOption.ArgumentOrReference)
        {
        }
        public IgnoreErrorsAttribute(ReferenceOption refMode)
            : base(refMode)
        {
        }
        internal override void ConvertImp(ConversionData data)
        {
            data.Ignore = data.Value is Error;
        }

    }
}